//
//  configuration.h
//  highSpeedTreasure
//
//  Created by 王晓民 on 16/12/27.
//  Copyright © 2016年 王晓民. All rights reserved.
//

#ifndef configuration_h
#define configuration_h
#import "WYCNavigationController.h"
#import "AppDelegate.h"
#import "UIView+XMGExtension.h"
#import "UIBarButtonItem+WYCExtesion.h"
#import "MyUIClass.h"
#import <SVProgressHUD.h>
#import <MJExtension.h>
#import <MJRefresh.h>
#import <UIImageView+WebCache.h>
#import <IQKeyboardManager.h>
#import "HttpTool.h"
#import "RSA.h"
#import "WYCAccount.h"
#import "WYCAccountTool.h"
#import "WYCUserModel.h"
#import "WYCIsAppLoginTool.h"
#define APPID           @"gazelle-gsxfb-0002"
#define APPKEY          @"cdc4c3993fefe57eae1c9afdcf386ac23fefe57eae1c9afd"
#define APPVERSION      @"1.0.1"
#define VALUEKEY        @"6C4E60E55552386C759569836DC0F83869836DC0F838C0F7"

/*
 * 本地存储
 */
#define SZUserDefault [NSUserDefaults standardUserDefaults]

/*
 * 获取设备宽高
 */
#define kScreenW [UIScreen mainScreen].bounds.size.width
#define kScreenH [UIScreen mainScreen].bounds.size.height




#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define IS_RETINA ([[UIScreen mainScreen] scale] >= 2.0)

#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
#define SCREEN_MAX_LENGTH (MAX(SCREEN_WIDTH, SCREEN_HEIGHT))
#define SCREEN_MIN_LENGTH (MIN(SCREEN_WIDTH, SCREEN_HEIGHT))

#define IS_IPHONE_4_OR_LESS (IS_IPHONE && SCREEN_MAX_LENGTH < 568.0)
#define IS_IPHONE_5 (IS_IPHONE && SCREEN_MAX_LENGTH == 568.0)
#define IS_IPHONE_6 (IS_IPHONE && SCREEN_MAX_LENGTH == 667.0)
#define IS_IPHONE_6P (IS_IPHONE && SCREEN_MAX_LENGTH == 736.0)

//RGB值
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b,a) RGBA(r,g,b,a)

#define APPDELEGATE (AppDelegate*)[UIApplication sharedApplication].delegate

#define SuperBigFont 70*px
#define BigFont 60*px
#define BigMiddleFont 55*px
#define MiddleFont 50*px
#define SmallFont 40*px
#define WyzFont 48*px
/*
 正则判断
 */
#define PhoneNumberRegex @"^[1][0-9][0-9]{9}$"            // 正则匹配电话号码


#define kAlphaNum @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

//请求<----------测试环境----------->
//#define HOST @"http://gb1.mtrip.cc:8080/gateway"
//#define HOST @"http://gb1.mtrip.cc:8089/gateway"
//#define HOST @"https://test01.bjxlpayment.com/gateway"
//#define HOST @"http://101.37.31.134:8081/gateway"

//请求<----------正式环境----------->
//#define HOST @"http://www.bjxlpayment.com:8080/gateway"
//#define HOST @"https://bjxlpayment.com/gateway"
#define HOST @"https://get.bjxlpayment.com/gateway"
/**
 提示语
 */

#define msgStr [NSString stringWithFormat:@"%@",responseObject[@"message"]]

#define Loading @"玩命加载中..."
#define Failed @"服务器链接失败，请稍后重试！"
//赵红旭
//#define HTTPS  @"http://192.168.1.158:8080/"
//李鑫
//#define HTTPS  @"http://192.168.1.188:8097"
//公网
#define HTTPS @"http://60.205.219.1:8080"
//bendi
//#define HTTPS @"http://192.168.1.177:8080"

//登录
#define Login [NSString stringWithFormat:@"%@/user/login?",HTTPS]

//注册
#define Register [NSString stringWithFormat:@"%@/user/register?",HTTPS]

//注册验证码获取
#define GETLOGINCODE @"/user/verificationCode"

//身份证识别
#define ocridcard [NSString stringWithFormat:@"%@/ocr/idcard?",HTTPS]

//实名认证
#define realAuth [NSString stringWithFormat:@"%@/user/realAuth?",HTTPS]

//轮播图
#define bannerlist [NSString stringWithFormat:@"%@/banner/list?",HTTPS]

//修改登录密码
#define userLpass [NSString stringWithFormat:@"%@/user/updateLoginPassword?",HTTPS]

//意见反馈
#define faceback [NSString stringWithFormat:@"%@/user/feedBack?",HTTPS]

//添加信用卡
#define addabank [NSString stringWithFormat:@"%@/bankcard/addCreditCard?",HTTPS]

//编辑信用卡
#define editCreditCard [NSString stringWithFormat:@"%@/bankcard/editCreditCard?",HTTPS]
//信用卡删除
#define CreditCardDelete [NSString stringWithFormat:@"%@/bankcard/CreditCardDelete?",HTTPS]

//银行列表
#define banklist [NSString stringWithFormat:@"%@/bank/list?",HTTPS]

//信用卡列表
#define creditCardList [NSString stringWithFormat:@"%@/bankcard/CreditCardList?",HTTPS]

//退出登录
#define Userlogout [NSString stringWithFormat:@"%@/user/loginOut?",HTTPS]


//发送验证码
#define Rcode [NSString stringWithFormat:@"%@/notice/sms/authcode?",HTTPS]
//忘记密码
#define forgetPassword [NSString stringWithFormat:@"%@/user/forgetPassword?",HTTPS]

//修改交易密码
#define updatePayPassword [NSString stringWithFormat:@"%@/user/updatePayPassword?",HTTPS]

//上传图片
#define updateImage [NSString stringWithFormat:@"%@/upload/image?",HTTPS]

//制定还款计划
#define createPlan [NSString stringWithFormat:@"%@/plan/createPlan?",HTTPS]

//往期计划
#define getCardAllPlan [NSString stringWithFormat:@"%@/plan/getCardAllPlan?",HTTPS]
//查看信用卡所有计划
#define getUserPlan [NSString stringWithFormat:@"%@/plan/getUserPlan?",HTTPS]

//消费计划列表
#define checkPlan [NSString stringWithFormat:@"%@/plan/checkPlan?",HTTPS]

//生成计划
#define beginPlan [NSString stringWithFormat:@"%@/plan/beginPlan?",HTTPS]

//查询卡计划详情
#define cardPlanDetail [NSString stringWithFormat:@"%@/plan/cardPlanDetail?",HTTPS]

//用户账单列表
#define getCardPlan [NSString stringWithFormat:@"%@/bill/getBill?",HTTPS]

//终止计划
#define stopPlan [NSString stringWithFormat:@"%@/plan/stopPlan?",HTTPS]

#define getUserVip [NSString stringWithFormat:@"%@/plan/getUserVip?",HTTPS]

//获取实名信息
#define getIdDetail [NSString stringWithFormat:@"%@/user/getIdDetail?",HTTPS]
//获取计划明细列表
#define getCardPlanDetail [NSString stringWithFormat:@"%@/plan/getCardPlanDetail?",HTTPS]
//viplist
#define vipList [NSString stringWithFormat:@"%@/user/vipList?",HTTPS]
//开通vip
#define openVip [NSString stringWithFormat:@"%@/user/openVip?",HTTPS]

//我的收益
#define myProfit [NSString stringWithFormat:@"%@/user/myProfit?",HTTPS]
//收益明细
#define myProfitDetails  [NSString stringWithFormat:@"%@/user/myProfitDetails?",HTTPS]
//我的团队
#define myTeam  [NSString stringWithFormat:@"%@/user/myTeam?",HTTPS]
//获取分享模板
#define getShareTemplate  [NSString stringWithFormat:@"%@/user/getShareTemplate?",HTTPS]
#define createTemplate  [NSString stringWithFormat:@"%@/user/createTemplate?",HTTPS]
//我的提现
#define withdraw  [NSString stringWithFormat:@"%@/user/withdraw?",HTTPS]
//验证手机
#define checkPhone  [NSString stringWithFormat:@"%@/user/checkPhone?",HTTPS]
//成为代理商
#define applicationAgent  [NSString stringWithFormat:@"%@/user/applicationAgent?",HTTPS]

#define list  [NSString stringWithFormat:@"%@/userMessage/list?",HTTPS]

#define receipt  [NSString stringWithFormat:@"%@/userMessage/receipt?",HTTPS]

#define ScreenWidth [UIScreen mainScreen].bounds.size.width
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
#define WYCRGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

#define WYCGlobalBg WYCRGBColor(246, 246, 246)
/**
 *高中低颜色值
 */
#define wycMain WYCRGBColor (0, 140, 222)
#define vipMain WYCRGBColor (206, 167, 87)

#define WYCcellLINEColor WYCRGBColor(212, 212, 212)
/**
 *透明RGB
 */
#define trpColor trpRGBColor(0, 0, 0)


//比例
#define px (ScreenWidth / 1242)


/** 间隙*/
#define WYCClearance 40 * px

/**
 大中小字号
 */
#define SuperBigFont 70*px
#define BigFont 60*px
#define BigMiddleFont 55*px
#define MiddleFont 50*px
#define SmallFont 40*px
#define WyzFont 48*px
/*********cell的高度*********/
#define WYCcellHeight 160 * px

#define kDevice_Is_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
/** NAV的高度 */
//#define NavHeight 64

#define NavHeight (kDevice_Is_iPhoneX ) ? (CGFloat)88 : (CGFloat)64

#ifdef DEBUG
#define NSLog(FORMAT, ...) fprintf(stderr, "%s:%zd\t%s\n", [[[NSString stringWithUTF8String: __FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat: FORMAT, ## __VA_ARGS__] UTF8String]);
#else
#define NSLog(FORMAT, ...) nil
#endif
//密钥
#define RSA_P_KEY @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCTrzMjhdhm73apUJQurTBEEFZjMJ1pXAnhP+l7bLdXjIOtxwKVZMckFGHKyhxQGDT2yKKOqI5R9hrtXESq1r6rjutM4CuKYezcZ07UGjy8D6HEkEN11eiYCuWTG/Hb1+25iT1tkCfsZZGk9s5o+I+c3Q8ui2w1Ft996770rv7xTwIDAQAB"
#define titleY (kDevice_Is_iPhoneX ) ? 60 : 30
#endif /* configuration_h */
